//Copyright (c) 1998-2006 Core Solutions Limited. All rights reserved.
//============================================================================
//CURRENT VERSION iDEX.3.7.0.013
//============================================================================
//CHANGE LOG
//iDEX.3.7.0.013 : Feb 1, 2006, Ric YIK, File Created
//============================================================================

package com.erp.app.util.web.taglib;

public class DocumentStatusConstantOptionsTag extends ProjectCustomOptionsTag {

    private String type;

    public DocumentStatusConstantOptionsTag() {
        this.setTable("T_STATUS_CONSTANTS");
        this.setValuecolumn("STATUS_CODE");
        this.setTextcolumn("STATUS_DESC");
        this.setOrder("ORDER_SEQ");
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    protected String makeWhereClause() {
        return "TYPE = '" + this.getType() + "'";
    }

}
